#include <string>
#include "Tokenizer.h"
#include "SyntacticTree.h"

#pragma once


class Calculator {
public:
	Calculator(Tokenizer& _tokenizer) : tokenizer(_tokenizer) {}
	double Calc();

private:
	Tokenizer& tokenizer;
	SyntacticTreeNodeBase* parseExpression();
	SyntacticTreeNodeBase* parseSum();
	SyntacticTreeNodeBase* parseMult();
};